package com.csnf.dao;

import com.csnf.entity.Course;
import java.io.IOException;
import java.util.List;

public interface ICourseDao {
    // 查询所有课程
    public List<Course> findAll() throws IOException;
    // 更具名称查询课程
    public List<Course> findByName(String name) throws IOException;
    // 添加课程
    public Integer save(Course course) throws IOException;
    // 根据id删除课程
    public Integer deleteById(Integer id) throws IOException;
}
